<{include file="app/header.tpl"}>

<header class="user-nav">

    <p class="line">
        <a href="/user/likes/goods" <{if $type == 'goods'}>class="active"<{/if}> title="">收藏的商品</a>&nbsp;&nbsp; | &nbsp;&nbsp;
        <a href="/user/likes/shop" <{if $type == 'shop'}>class="active"<{/if}> title="">收藏的店铺</a>
    </p>

    <a href="/order/list/finished" class="share-click" title="">晒单得佣金</a>

</header>

<p class="padding-45"></p>

<{if $goodsItems.list|@count > 0}>
<ul class="goods-list fix loadimg">
    <{foreach from=$goodsItems.list item="goods"}>
    <li class="li">
        <a href="/goods/detail/<{$goods.id}>" class="a" title="">
            <img class="img" src="<{$goods.thumb}>" alt="">
            <p class="title"><{$goods.name}></p>
            <p class="bottom fix">
                <span class="money"><{$goods.price}></span>
                <span class="like-number" onclick="user_like('goods', <{$goods.id}>, this); return false;">
                    <em class="like-icon"></em>
                    <span class="iCounts"><{$goods.countsLike}></span>
                </span>
            </p>
        </a>
    </li>
    <{/foreach}>
</ul>

<{else}>
<{if $type == 'goods'}>
<div class="goods-list-null">
    <img class="img" src="/resource/app/imgs/all_empty.png" alt="">
    <p class="text">暂无收藏的商品</p>
</div>
<{/if}>
<{/if}>


<{if $shopItems.list|@count > 0 }>

<ul class="davshop-list">
    <{foreach from=$shopItems.list item="shop"}>
    <li class="li">
        <a href="/davshop/detail/<{$shop.id}>" class="a" title="">
            <div class="left"><img src="<{$shop.shopIcon}>" alt="" class="img"></div>
            <div class="middle">
                <p class="shop-name"><{$shop.shopName}></p>
                <p class="prompt"><{$shop.shortDesc}></p>
                <p class="info">
                    收藏<span class="number"><{$shop.countsLike}></span>
                    人气<span class="number"><{$shop.countsView}></span>
                </p>
            </div>
            <em class="back-icon"></em>
        </a>
    </li>
    <{/foreach}>
</ul>

<{else}>
<{if $type == 'shop'}>
<div class="davshop-list-null">
    <img class="img" src="/resource/app/imgs/all_empty.png" alt="">
    <p class="text">暂无收藏的店铺</p>
</div>
<{/if}>
<{/if}>


<{include file="app/footer.tpl"}>
